package com.cx.mall.goods.service;

import com.cx.mall.common.model.goods.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cx.mall.common.model.goods.CategoryDTO;

import java.util.List;

/**
 * <p>
 * 商品类目 服务类
 * </p>
 *
 * @author lyt
 * @since 2025-07-10
 */
public interface ICategoryService extends IService<Category> {
    List<CategoryDTO> listAll();

    /**
     * 根据父类ID列表查询
     * @param ids
     * @return
     */
    List<Integer> listByParentId(List< Integer> ids);
    List<Integer> listByParentId(Integer id);
    List<String> getCategoryNames(Long categoryId);
}
